﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;


///<summary>
///用于读于与写入配置文件的类
///</summary>

namespace wifi_test
{
    class cls_ReadSetup
    {
        /// <summary>
        /// 判断配置文件是否存在
        /// </summary>
        public bool fun_SetupFileExist()
        {
            bool retflag;

            retflag = false;
            string setupfile = "setup.xml";

            try
            {
                if (File.Exists(setupfile))
                {
                    StreamReader readfile = new StreamReader(setupfile);
                }
                else
                {
                    retflag = false;
                }

            }
            catch (Exception e)
            {
                Console.WriteLine("The process failed: {0}", e.ToString());
            }

            return retflag;
        }
    }
}
